package com.vastcom.sigma.admin.model;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Date;

@Entity
public class Encapsort {
    private String encapsortid;
    private String scpc;
    private Double scdsl;
    private Double ccdsl;
    private Double mbdsl;
    private Double hgsl;
    private String fjy;
    private String zjyj;
    private String clqk;
    private Date fjsj;

    @Id
    @Column(name = "encapsortid")
    public String getEncapsortid() {
        return encapsortid;
    }

    public void setEncapsortid(String encapsortid) {
        this.encapsortid = encapsortid;
    }

    @Basic
    @Column(name = "scpc")
    public String getScpc() {
        return scpc;
    }

    public void setScpc(String scpc) {
        this.scpc = scpc;
    }

    @Basic
    @Column(name = "scdsl")
    public Double getScdsl() {
        return scdsl;
    }

    public void setScdsl(Double scdsl) {
        this.scdsl = scdsl;
    }

    @Basic
    @Column(name = "ccdsl")
    public Double getCcdsl() {
        return ccdsl;
    }

    public void setCcdsl(Double ccdsl) {
        this.ccdsl = ccdsl;
    }

    @Basic
    @Column(name = "mbdsl")
    public Double getMbdsl() {
        return mbdsl;
    }

    public void setMbdsl(Double mbdsl) {
        this.mbdsl = mbdsl;
    }

    @Basic
    @Column(name = "hgsl")
    public Double getHgsl() {
        return hgsl;
    }

    public void setHgsl(Double hgsl) {
        this.hgsl = hgsl;
    }

    @Basic
    @Column(name = "fjy")
    public String getFjy() {
        return fjy;
    }

    public void setFjy(String fjy) {
        this.fjy = fjy;
    }

    @Basic
    @Column(name = "zjyj")
    public String getZjyj() {
        return zjyj;
    }

    public void setZjyj(String zjyj) {
        this.zjyj = zjyj;
    }

    @Basic
    @Column(name = "clqk")
    public String getClqk() {
        return clqk;
    }

    public void setClqk(String clqk) {
        this.clqk = clqk;
    }

    @Basic
    @Column(name = "fjsj")
    public Date getFjsj() {
        return fjsj;
    }

    public void setFjsj(Date fjsj) {
        this.fjsj = fjsj;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Encapsort encapsort = (Encapsort) o;

        if (encapsortid != null ? !encapsortid.equals(encapsort.encapsortid) : encapsort.encapsortid != null)
            return false;
        if (scpc != null ? !scpc.equals(encapsort.scpc) : encapsort.scpc != null) return false;
        if (scdsl != null ? !scdsl.equals(encapsort.scdsl) : encapsort.scdsl != null) return false;
        if (ccdsl != null ? !ccdsl.equals(encapsort.ccdsl) : encapsort.ccdsl != null) return false;
        if (mbdsl != null ? !mbdsl.equals(encapsort.mbdsl) : encapsort.mbdsl != null) return false;
        if (hgsl != null ? !hgsl.equals(encapsort.hgsl) : encapsort.hgsl != null) return false;
        if (fjy != null ? !fjy.equals(encapsort.fjy) : encapsort.fjy != null) return false;
        if (zjyj != null ? !zjyj.equals(encapsort.zjyj) : encapsort.zjyj != null) return false;
        if (clqk != null ? !clqk.equals(encapsort.clqk) : encapsort.clqk != null) return false;
        if (fjsj != null ? !fjsj.equals(encapsort.fjsj) : encapsort.fjsj != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = encapsortid != null ? encapsortid.hashCode() : 0;
        result = 31 * result + (scpc != null ? scpc.hashCode() : 0);
        result = 31 * result + (scdsl != null ? scdsl.hashCode() : 0);
        result = 31 * result + (ccdsl != null ? ccdsl.hashCode() : 0);
        result = 31 * result + (mbdsl != null ? mbdsl.hashCode() : 0);
        result = 31 * result + (hgsl != null ? hgsl.hashCode() : 0);
        result = 31 * result + (fjy != null ? fjy.hashCode() : 0);
        result = 31 * result + (zjyj != null ? zjyj.hashCode() : 0);
        result = 31 * result + (clqk != null ? clqk.hashCode() : 0);
        result = 31 * result + (fjsj != null ? fjsj.hashCode() : 0);
        return result;
    }
}
